import request from '@/utils/request'

// 查询黑白名单详情列表
export function listBlackwhitelistDetail(query) {
  return request({
    url: '/lbconfig/blackwhitelistDetail/list',
    method: 'get',
    params: query
  })
}

// 查询黑白名单详情详细
export function getBlackwhitelistDetail(id) {
  return request({
    url: '/lbconfig/blackwhitelistDetail/' + id,
    method: 'get'
  })
}

// 新增黑白名单详情
export function addBlackwhitelistDetail(data) {
  return request({
    url: '/lbconfig/blackwhitelistDetail',
    method: 'post',
    data: data
  })
}

// 修改黑白名单详情
export function updateBlackwhitelistDetail(data) {
  return request({
    url: '/lbconfig/blackwhitelistDetail',
    method: 'put',
    data: data
  })
}

// 删除黑白名单详情
export function delBlackwhitelistDetail(listId,id) {
  return request({
    url: '/lbconfig/blackwhitelistDetail/' + listId + '/' + id,
    method: 'delete'
  })
}
